from django.urls import path
from dhm.views.consumer.getinfo import InfoView
from dhm.views.consumer.register import Register
from dhm.views.produce.produce import ProduceView
from dhm.views.burglary_proof_door.burglary_proof_door import BurglaryProofDoorView
from dhm.views.roller_door.roller_door import RollerDoorView
from dhm.views.food_cart.food_cart import FoodCartView
from dhm.views.purchased.purchased import PurchasedView
from dhm.views.return_goods.return_goods import ReturnGoodsView
from dhm.views.inbound_goods.inbound_goods import InboundGoodsView
from dhm.views.chating.chating import ChatingView
from dhm.views.chating.recent_news import RecentNewsView
from dhm.views.Warehousing_System.administrator.login import LoginView
from dhm.views.Warehousing_System.administrator.register import RegisterView
from dhm.views.Warehousing_System.administrator.getuser import GetUserView
from rest_framework_simplejwt.views import (
    TokenObtainPairView,
    TokenRefreshView,
)

urlpatterns = [
    path('token/', TokenObtainPairView.as_view(), name='token'),
    path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
    path('getinfo/', InfoView.as_view(), name="settings_getinfo"),
    path('register/', Register.as_view(), name="settings_register"),
    path('produce/', ProduceView.as_view(), name="settings_produce"),
    path('burglary_proof_door/', BurglaryProofDoorView.as_view(), name="settings_burglary_proof_door"),
    path('roller_door/', RollerDoorView.as_view(), name="settings_roller_door"),
    path('food_cart/', FoodCartView.as_view(), name="settings_food_cart"),
    path('purchased/', PurchasedView.as_view(), name="settings_purchased"),
    path('return_goods/', ReturnGoodsView.as_view(), name="settings_return_goods"),
    path('inbound_goods/', InboundGoodsView.as_view(), name="settings_inbound_goods"),
    path('chating/', ChatingView.as_view(), name="settings_chating"),
    path('recent_news', RecentNewsView.as_view(), name="settings_recent_news"),
    path('administrator/login/', LoginView.as_view(), name="settings_administrator_login"),
    path('administrator/register/', RegisterView.as_view(), name="settings_administrator_register"),
    path('administrator/getuser/', GetUserView.as_view(), name="settings_administrator_getuser")
    ]
